package Year2021.Month11.Day1Homework;

import java.util.Scanner;

public class Menu {
    public static void main(String[] args) {

        while (true) {
            Scanner in = new Scanner(System.in);
            System.out.println("请输入你的选择，1:登录,2:注册,3:联系客服");
            try {
                int choice = in.nextInt();
                if (choice == 1) {
                    System.out.println("请进行登录！");
                    return;
                } else if (choice == 2) {
                    System.out.println("请进行注册");
                    return;
                } else if (choice == 3) {
                    System.out.println("请联系客服");
                    return;
                } else {
                    System.out.println("请重新输入");

                }

            } catch (Exception e) {
                System.out.println("请重新输入" + e);
            }
        }
    }
}
